package cn.ac.aircas.system.mapper;

import cn.ac.aircas.system.domain.SysRegion;
import cn.ac.aircas.system.domain.vo.CityVo;
import cn.ac.aircas.system.domain.vo.ProvinceCityVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author li
* @description 针对表【t_region】的数据库操作Mapper
* @createDate 2025-04-07 14:58:30
* @Entity cn.ac.aircas.system.domain.SysRegion
*/
public interface SysRegionMapper {

    List<SysRegion> selectRegionList(SysRegion sysRegion);

    List<SysRegion> getRegionDistrict(SysRegion sysRegion);

    List<CityVo> getRegionDistrictByCityName(String cityName);

    List<Map> getDistrictBoundaryByCityName(@Param("cityName") String cityName, @Param("districtName") String districtName);

    List<String> getDistrictsByCityName(@Param("cityName") String cityName);

    void insert(SysRegion sysRegion);

    List<ProvinceCityVo> getCityList(String status);

    int updateRegion(SysRegion sysRegion);

    List<SysRegion> selectRegionListByUserId(SysRegion region);

    List<Integer> selectRegionListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
}




